import QtQuick 2.0
import QtQuick.Controls 2.0

Item{
    width: 250
    height: 40

    property alias name: name.text
    property alias v: t.text

    Row{
        Text{
            id: name
            anchors.verticalCenter: s.verticalCenter
        }
        Slider{
            id: s
            from: 0
            to: 100
            value: 0
            onValueChanged: t.text = Math.floor(value)
        }
        Text{
            id: t
            text: "0"
            anchors.verticalCenter: s.verticalCenter
        }
    }
}
